package com.koron.order.maintain.service;

import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.maintain.bean.entity.MaintainReadyPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (MaintainReady)表服务接口
 *
 * @author zhouj
 * @since 2021-09-14 14:12:51
 */
public interface MaintainReadyService extends CommonService {

    int insert(SessionFactory factory, MaintainReadyPo maintainReady);

    int update(SessionFactory factory, MaintainReadyPo maintainReady);

    int deleteById(SessionFactory factory, String id);

    int deleteByOrderId(SessionFactory factory, String orderId);

    MaintainReadyPo queryById(SessionFactory factory, String id);

    List<MaintainReadyPo> queryList(SessionFactory factory, MaintainReadyPo maintainReady);

    List<MaintainReadyPo> queryByOrderId(SessionFactory factory, String orderId);

    int insertBatch(SessionFactory factory, List<MaintainReadyPo> maintainReadyPoList);

    int updateBatch(SessionFactory factory, List<MaintainReadyPo> maintainReadyPoList);

}
